import { defineStore } from "pinia"
import { ref } from "vue"

export const useUserStore = defineStore("user", () => {
    const user = ref({})
    function changeUser(val) {
        user.value = val
    }
    return {
        user,
        changeUser
    }
}, { persist: true })
